package com.aos.erp.gov.ex.task;

import com.aos.erp.common.exception.BizException;
import com.aos.erp.gov.ex.model.GovExSyncTask;
import com.aos.erp.gov.ex.model.GovSchoolTicket;
import com.aos.erp.gov.ex.model.to.GovKSDD;
import com.aos.erp.gov.ex.model.to.GovKSKM;

import java.util.List;

public interface SyncExecuteCenter {

    boolean isWebOwner(GovSchoolTicket ticket);

    //保活
    void keepLive(GovSchoolTicket ticket) throws BizException;

    /**
     * 考试科目
     *
     * @param ticket
     * @return
     */
    List<GovKSKM> getGovKSKM(GovSchoolTicket ticket);

    /**
     * 考试地点
     *
     * @param ticket
     * @return
     */
    List<GovKSDD> getGovKSDD(GovSchoolTicket ticket, String kskm);


    /**
     * 约考
     *
     * @param ticket
     * @return
     */
    int syncYK(GovSchoolTicket ticket, GovExSyncTask task) throws BizException;


    /**
     * 成绩
     *
     * @param ticket
     * @return
     */
    int syncCJ(GovSchoolTicket ticket, GovExSyncTask task) throws BizException;


    /**
     * 同步预录入结果
     *
     * @param ticket
     * @return
     */
    int syncYLR(GovSchoolTicket ticket, GovExSyncTask task) throws BizException;


}
